﻿@{
    Layout = null;
}
@model  List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.DocumentGridModel>
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
        <script src="../../../../Scripts/json2.js" type="text/javascript"></script>  
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )
</head>
<body>

    <script>
        if (top.boardtop) {
            top.boardtop.head_txt.innerText = "查看未阅通知";
        }
        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
        }
        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnRefresh":
                    {
                        //刷新
                        var clientgvDocumentObj = ASPxClientGridView.Cast("gvDocument");
                        clientgvDocumentObj.Refresh();
                        break;
                    }
            }
        }
    </script>
     <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);

       settings.Items.Add(item =>
       {
           item.Name = "btnRefresh";
           item.Text = "刷新";
           item.Image.Url = Url.Content("~/Content/ControlImages/reload.png");

       });
       
       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()
    </div>
    @Html.Partial("NoticeListPartial", Model)

    @Html.Hidden("hdPageIndex", ViewData["pageIndex"] == null ? 1 : int.Parse(ViewData["pageIndex"].ToString()))
</body>
</html>
